package com.shanghai.huaning.controller;


import com.shanghai.huaning.db.testEntity;
import com.shanghai.huaning.service.testService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/wdnmd")
public class testController {

    @Autowired
    testService testService;

    @GetMapping("/test/hhh")
    public List<testEntity> test(String name){
        return testService.get(name);
    }
}
